package org.lq.his.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.lq.his.pojo.Dictionary;

public interface DictionaryDao extends CommonDao<Dictionary, Integer>{
	
	public List<Dictionary> getParent();
	
	public Dictionary getParentId(Integer parentId);
	
	public void getAddParent(Dictionary parent);
	
	//修改子类state
	public void getEditState(Integer[] ids);
	
	//修改父类
	public void getEditParent(Dictionary dictionary);
	
	public List<Dictionary> getDictionaryValueByKey(@Param("key")String key);
	
	/**
	 * 根据id和值查询
	 * @param dictionary
	 * @return
	 */
	public Dictionary getByIdAndValue(@Param("id")Integer id,@Param("value")String value);
	
}
